<?php
namespace addons\huochetou;
use think\Controller;

class Huochetou extends Controller
{
    public $info = [
        'name' => 'huochetou',
        'title' => '火车头插件',
        'description' => '详情请看管理说明',
        'status' => 0,
        'version' => '1.0.0',
        'adminUrl' => '1'
    ];
    
    public function install()
    {
        db('base_key')->insert(array('key' => 'huochetou','val' => 'www.ssycms.com'));
        return true;
    }
    
    public function uninstall()
    {
        db('base_key')->where('key','huochetou')->delect();
        return true;
    }
}

